/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import java.lang.reflect.Method;

/**
 *
 * @author 
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       Info info=new Info();
       MiBean bean=new MiBean();
       bean.setApellidos("apellllllids");
       Method method=info.getMethodName(bean, "getApellidos");
       System.out.println("-aaa->"+method.getName());
       String cade=(String)info.invokeGetMethod(bean, "getApellidos");
       System.out.println(""+cade);
    }

}
